<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>OpenRF: OpenRF_MAC/openrf_mac.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenRF
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Modules</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_a27e907f07ab0428c468c0aa33e4af34.html">OpenRF_MAC</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">openrf_mac.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*************************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">**                                                                                  **</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">**  openrf_mac.h            OpenRF(tm) MAC Layer                                    **</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">**                                                                                  **</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">**************************************************************************************</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">**                                                                                  **</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">** Written By:  Steve Montgomery                                                    **</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">**              Digital Six Laboratories LLC                                        **</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">** (c)2012,2013,2014 Digital Six Labs, All rights reserved                          **</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">**                                                                                  **</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">**************************************************************************************/</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">// OpenRF™ Protocol Platform</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// Open Source - MIT License</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// Revision History</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// Revision     Date    Revisor     Description</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// ===================================================================================</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// ===================================================================================</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"></span><span class="preprocessor">#ifndef OPENRF_HEADER</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#define OPENRF_HEADER</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#ifdef RADIO_SI1000</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;..\Radio\Si1000\radioapi.h&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#ifdef RADIO_SX1231</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;..\Radio\SX1231\radioapi.h&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#define kMaxMessageQueueSize 4</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#ifdef RADIO_SX1272</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;..\radio\sx1272\radioapi.h&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="group___open_r_f.html#ga28163474abc4f10ccf9241e6c0a1422e">   45</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;{</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea54a69a9ab72289fb1f93bca56e7349ab">   48</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea54a69a9ab72289fb1f93bca56e7349ab">kBlockingListenForPacket</a>,</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea9da7444f0f36e477afb09e13e249ddab">   50</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea9da7444f0f36e477afb09e13e249ddab">kBlockingDetectChannelActivity</a>,</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea8b854978b0c33269d0abca27cd940967">   52</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea8b854978b0c33269d0abca27cd940967">kListenForPacket</a>,</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea621cc4768aff539cfec1fc9814a8befa">   54</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea621cc4768aff539cfec1fc9814a8befa">kDetectChannelActivity</a></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;} <a class="code" href="group___open_r_f.html#ga28163474abc4f10ccf9241e6c0a1422e">tListenModes</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="group___open_r_f.html#ga0191e76d54bb003723263a47fa9a7101">   59</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;{</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a19d8199da79ca4c28eb644052b08f632">   62</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a19d8199da79ca4c28eb644052b08f632">kIdle</a>,</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101aa20cbba7c3fbef0687f9aad998e94a0e">   64</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101aa20cbba7c3fbef0687f9aad998e94a0e">kTransmitting</a>,</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101ad6cfbd04bb1785e5347062ce124ec4dc">   66</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101ad6cfbd04bb1785e5347062ce124ec4dc">kListening</a>,</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101add8280cdb1cba70addb16dee65ca02e6">   68</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101add8280cdb1cba70addb16dee65ca02e6">kWaitingForAck</a>,</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a6d54cce02512d451a161a1d1dcf273e6">   70</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a6d54cce02512d451a161a1d1dcf273e6">kSendAck</a>,</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a159a728c690010955c411e6dc314e4eb">   72</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a159a728c690010955c411e6dc314e4eb">kSendingAck</a>,</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a2b19c68e5a1e48fcb1227d09382413de">   74</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a2b19c68e5a1e48fcb1227d09382413de">kAckRequired</a>,</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a6a5907d52deb390eec3e544e19e45b33">   76</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a6a5907d52deb390eec3e544e19e45b33">kReceiving</a>,</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a9b1fddf44bce966b60624b8566da0f5e">   78</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a9b1fddf44bce966b60624b8566da0f5e">kPacketReceived</a>,</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a1bec80a402b7a72ae776bf8631871643">   80</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a1bec80a402b7a72ae776bf8631871643">kPacketTransmitted</a>,</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a74a1f26f67179126aeb97c91122d251f">   82</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a74a1f26f67179126aeb97c91122d251f">kRadioError</a></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;} <a class="code" href="group___open_r_f.html#ga0191e76d54bb003723263a47fa9a7101">tOpenRFStates</a>;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="group___open_r_f.html#ga75b3ac4a450160131d80d0178b974101">   88</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;{</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101a09c3a6fa88cf4c80c7516b2d657894a5">   91</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101a09c3a6fa88cf4c80c7516b2d657894a5">kNoAck</a>,</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101af83ce339764c3382ff1436195925846d">   93</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101af83ce339764c3382ff1436195925846d">kFifoUnderflow</a>,</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101a02dea8a7ec5fd46f76769a41e827093b">   95</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101a02dea8a7ec5fd46f76769a41e827093b">kFifoOverflow</a>,</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101af2cd3231820315500697550960956126">   97</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101af2cd3231820315500697550960956126">kUndefined</a></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;} <a class="code" href="group___open_r_f.html#ga75b3ac4a450160131d80d0178b974101">tTransmitErrors</a>;</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="group___open_r_f.html#ga0a276b3957264b6d9a4ee7af297d0b34">  102</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;{</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0a276b3957264b6d9a4ee7af297d0b34aca42c074332be0f2a766afb361c34f00">  105</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0a276b3957264b6d9a4ee7af297d0b34aca42c074332be0f2a766afb361c34f00">kHopping</a>,</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="group___open_r_f.html#gga0a276b3957264b6d9a4ee7af297d0b34a6ddd6b8071bdfdeacef32e59eed44e3a">  107</a></span>&#160;    <a class="code" href="group___open_r_f.html#gga0a276b3957264b6d9a4ee7af297d0b34a6ddd6b8071bdfdeacef32e59eed44e3a">kDTS</a></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;} <a class="code" href="group___open_r_f.html#ga0a276b3957264b6d9a4ee7af297d0b34">tHoppingMode</a>;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structt_open_r_f_initializer.html">  113</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structt_open_r_f_initializer.html">tOpenRFInitializer</a></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;{</div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="structt_open_r_f_initializer.html#ad291935e5feb01141a87cb3ba5c84b36">  116</a></span>&#160;    U16 <a class="code" href="structt_open_r_f_initializer.html#ad291935e5feb01141a87cb3ba5c84b36">AckTimeout</a>;</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="structt_open_r_f_initializer.html#ae21f4ec2e337de40e112b34e64cc9187">  118</a></span>&#160;    U8 <a class="code" href="structt_open_r_f_initializer.html#ae21f4ec2e337de40e112b34e64cc9187">AckRetries</a>;</div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="structt_open_r_f_initializer.html#a20080386fa1505cf9d26ef496b6bdb5a">  120</a></span>&#160;    U8 <a class="code" href="structt_open_r_f_initializer.html#a20080386fa1505cf9d26ef496b6bdb5a">ChannelCount</a>;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="structt_open_r_f_initializer.html#aebfad6cf896be82a75c0630897e846bc">  122</a></span>&#160;    U8 <a class="code" href="structt_open_r_f_initializer.html#aebfad6cf896be82a75c0630897e846bc">StartChannel</a>;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#ifdef RADIOMODE_LORA</span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    U8 PreambleLength;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    U8 UseVariableSF;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    U8 DefaultSF;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#ifdef RADIOMODE_FHSS</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    tDataRates DataRate;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    U8 HopTable;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    U8 GfskModifier;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="structt_open_r_f_initializer.html#a746379616c2208fedf7488e30a6381e6">  140</a></span>&#160;    <a class="code" href="union_u_u256.html">UU256</a> <a class="code" href="structt_open_r_f_initializer.html#a746379616c2208fedf7488e30a6381e6">EncryptionKey</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="structt_open_r_f_initializer.html#a4c9fafee524e535fd8550d7c1c0aba38">  142</a></span>&#160;    <a class="code" href="union_u_u32.html">UU32</a> <a class="code" href="structt_open_r_f_initializer.html#a4c9fafee524e535fd8550d7c1c0aba38">MacAddress</a>;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;} <a class="code" href="group___open_r_f.html#ga567d0717738c6d44e1f07b753407ac31">tOpenRFInitializer</a>;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> NotifyMacPacketReceived(<a class="code" href="group___radio.html#gaba81c4c5fad7e2e0cef01f8e6c710ecb">tPacketTypes</a> packetType,<a class="code" href="union_u_u32.html">UU32</a> sourceMACAddress,U8 length, U8 *SDU, U8 rssi);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> NotifyMacReceiveError();</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> NotifyMac1Second();</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> NotifyMacPacketSent();</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> NotifyMacPacketSendError(<a class="code" href="group___open_r_f.html#ga75b3ac4a450160131d80d0178b974101">tTransmitErrors</a>);</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> NotifyMac1MilliSecond();</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___open_r_f.html#gaed105eca7e470e79e9a2ac4bd4aa8863">OpenRFSendPacket</a>(  <a class="code" href="union_u_u32.html">UU32</a> destAddress,</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;                        <a class="code" href="group___radio.html#gaba81c4c5fad7e2e0cef01f8e6c710ecb">tPacketTypes</a> packetType,</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;                        U8 length,</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                        U8 *txBuffer</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;                        );</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___open_r_f.html#ga3cbbee7672821bd775d8c9dc295f7b53">OpenRFInitialize</a>(<a class="code" href="structt_open_r_f_initializer.html">tOpenRFInitializer</a> ini );</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___open_r_f.html#ga6d63157afa39c547cb02c5b71455c2cc">OpenRFListenForPacket</a>(<a class="code" href="group___radio.html#gaceb4f15c2a65dde634322d4ab88c88ff">tReceiveModes</a> mode ,</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;                        U16 period );</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<a class="code" href="group___open_r_f.html#ga0191e76d54bb003723263a47fa9a7101">tOpenRFStates</a> <a class="code" href="group___open_r_f.html#ga66e3018afaf75239d092833054be068f">OpenRFLoop</a>();</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;U8 <a class="code" href="group___open_r_f.html#ga796c67f936c99b026c94c11d02cf0900">OpenRFReadyToSend</a>();</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___open_r_f.html#ga721e6eb444576558b3b0eb11b11068c8">OpenRFSleep</a>(U8 level );</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___open_r_f.html#ga125323cedc2d6ffa7a8a6c32d2696111">OpenRFSetPreamble</a>(U16 pre );</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="comment">// ***  Macro wrappers for RadioAPI functions ***</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="preprocessor">#define OpenRFSetHopTable(x) RadioSetHopTable(x)</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="preprocessor">#define OpenRFSetTxPower(x) RadioSetTxPower(x)</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="preprocessor">#define OpenRFSetChannel(x) RadioSetChannel(x)</span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div>
<div class="ttc" id="group___radio_html_gaba81c4c5fad7e2e0cef01f8e6c710ecb"><div class="ttname"><a href="group___radio.html#gaba81c4c5fad7e2e0cef01f8e6c710ecb">tPacketTypes</a></div><div class="ttdeci">tPacketTypes</div><div class="ttdef"><b>Definition:</b> radioapi.h:82</div></div>
<div class="ttc" id="structt_open_r_f_initializer_html_a20080386fa1505cf9d26ef496b6bdb5a"><div class="ttname"><a href="structt_open_r_f_initializer.html#a20080386fa1505cf9d26ef496b6bdb5a">tOpenRFInitializer::ChannelCount</a></div><div class="ttdeci">U8 ChannelCount</div><div class="ttdef"><b>Definition:</b> openrf_mac.h:120</div></div>
<div class="ttc" id="group___open_r_f_html_gga0191e76d54bb003723263a47fa9a7101a2b19c68e5a1e48fcb1227d09382413de"><div class="ttname"><a href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a2b19c68e5a1e48fcb1227d09382413de">kAckRequired</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:74</div></div>
<div class="ttc" id="group___open_r_f_html_ga3cbbee7672821bd775d8c9dc295f7b53"><div class="ttname"><a href="group___open_r_f.html#ga3cbbee7672821bd775d8c9dc295f7b53">OpenRFInitialize</a></div><div class="ttdeci">void OpenRFInitialize(tOpenRFInitializer ini)</div><div class="ttdef"><b>Definition:</b> openrf_mac.c:290</div></div>
<div class="ttc" id="group___open_r_f_html_gga28163474abc4f10ccf9241e6c0a1422ea621cc4768aff539cfec1fc9814a8befa"><div class="ttname"><a href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea621cc4768aff539cfec1fc9814a8befa">kDetectChannelActivity</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:54</div></div>
<div class="ttc" id="structt_open_r_f_initializer_html_a4c9fafee524e535fd8550d7c1c0aba38"><div class="ttname"><a href="structt_open_r_f_initializer.html#a4c9fafee524e535fd8550d7c1c0aba38">tOpenRFInitializer::MacAddress</a></div><div class="ttdeci">UU32 MacAddress</div><div class="ttdef"><b>Definition:</b> openrf_mac.h:142</div></div>
<div class="ttc" id="group___open_r_f_html_gga0191e76d54bb003723263a47fa9a7101a74a1f26f67179126aeb97c91122d251f"><div class="ttname"><a href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a74a1f26f67179126aeb97c91122d251f">kRadioError</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:82</div></div>
<div class="ttc" id="structt_open_r_f_initializer_html_a746379616c2208fedf7488e30a6381e6"><div class="ttname"><a href="structt_open_r_f_initializer.html#a746379616c2208fedf7488e30a6381e6">tOpenRFInitializer::EncryptionKey</a></div><div class="ttdeci">UU256 EncryptionKey</div><div class="ttdef"><b>Definition:</b> openrf_mac.h:140</div></div>
<div class="ttc" id="group___open_r_f_html_ga6d63157afa39c547cb02c5b71455c2cc"><div class="ttname"><a href="group___open_r_f.html#ga6d63157afa39c547cb02c5b71455c2cc">OpenRFListenForPacket</a></div><div class="ttdeci">void OpenRFListenForPacket(tReceiveModes mode, U16 period)</div><div class="ttdef"><b>Definition:</b> openrf_mac.c:324</div></div>
<div class="ttc" id="group___open_r_f_html_gga0191e76d54bb003723263a47fa9a7101a159a728c690010955c411e6dc314e4eb"><div class="ttname"><a href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a159a728c690010955c411e6dc314e4eb">kSendingAck</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:72</div></div>
<div class="ttc" id="group___open_r_f_html_gga28163474abc4f10ccf9241e6c0a1422ea54a69a9ab72289fb1f93bca56e7349ab"><div class="ttname"><a href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea54a69a9ab72289fb1f93bca56e7349ab">kBlockingListenForPacket</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:48</div></div>
<div class="ttc" id="group___open_r_f_html_gga0a276b3957264b6d9a4ee7af297d0b34a6ddd6b8071bdfdeacef32e59eed44e3a"><div class="ttname"><a href="group___open_r_f.html#gga0a276b3957264b6d9a4ee7af297d0b34a6ddd6b8071bdfdeacef32e59eed44e3a">kDTS</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:107</div></div>
<div class="ttc" id="group___open_r_f_html_gga0191e76d54bb003723263a47fa9a7101ad6cfbd04bb1785e5347062ce124ec4dc"><div class="ttname"><a href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101ad6cfbd04bb1785e5347062ce124ec4dc">kListening</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:66</div></div>
<div class="ttc" id="group___open_r_f_html_gga28163474abc4f10ccf9241e6c0a1422ea8b854978b0c33269d0abca27cd940967"><div class="ttname"><a href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea8b854978b0c33269d0abca27cd940967">kListenForPacket</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:52</div></div>
<div class="ttc" id="structt_open_r_f_initializer_html_aebfad6cf896be82a75c0630897e846bc"><div class="ttname"><a href="structt_open_r_f_initializer.html#aebfad6cf896be82a75c0630897e846bc">tOpenRFInitializer::StartChannel</a></div><div class="ttdeci">U8 StartChannel</div><div class="ttdef"><b>Definition:</b> openrf_mac.h:122</div></div>
<div class="ttc" id="union_u_u256_html"><div class="ttname"><a href="union_u_u256.html">UU256</a></div><div class="ttdef"><b>Definition:</b> TypeDefinitions.h:87</div></div>
<div class="ttc" id="structt_open_r_f_initializer_html"><div class="ttname"><a href="structt_open_r_f_initializer.html">tOpenRFInitializer</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:113</div></div>
<div class="ttc" id="group___open_r_f_html_ga796c67f936c99b026c94c11d02cf0900"><div class="ttname"><a href="group___open_r_f.html#ga796c67f936c99b026c94c11d02cf0900">OpenRFReadyToSend</a></div><div class="ttdeci">U8 OpenRFReadyToSend()</div><div class="ttdef"><b>Definition:</b> openrf_mac.c:400</div></div>
<div class="ttc" id="structt_open_r_f_initializer_html_ad291935e5feb01141a87cb3ba5c84b36"><div class="ttname"><a href="structt_open_r_f_initializer.html#ad291935e5feb01141a87cb3ba5c84b36">tOpenRFInitializer::AckTimeout</a></div><div class="ttdeci">U16 AckTimeout</div><div class="ttdef"><b>Definition:</b> openrf_mac.h:116</div></div>
<div class="ttc" id="group___open_r_f_html_ga28163474abc4f10ccf9241e6c0a1422e"><div class="ttname"><a href="group___open_r_f.html#ga28163474abc4f10ccf9241e6c0a1422e">tListenModes</a></div><div class="ttdeci">tListenModes</div><div class="ttdef"><b>Definition:</b> openrf_mac.h:45</div></div>
<div class="ttc" id="group___open_r_f_html_gga75b3ac4a450160131d80d0178b974101af2cd3231820315500697550960956126"><div class="ttname"><a href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101af2cd3231820315500697550960956126">kUndefined</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:97</div></div>
<div class="ttc" id="structt_open_r_f_initializer_html_ae21f4ec2e337de40e112b34e64cc9187"><div class="ttname"><a href="structt_open_r_f_initializer.html#ae21f4ec2e337de40e112b34e64cc9187">tOpenRFInitializer::AckRetries</a></div><div class="ttdeci">U8 AckRetries</div><div class="ttdef"><b>Definition:</b> openrf_mac.h:118</div></div>
<div class="ttc" id="group___open_r_f_html_ga125323cedc2d6ffa7a8a6c32d2696111"><div class="ttname"><a href="group___open_r_f.html#ga125323cedc2d6ffa7a8a6c32d2696111">OpenRFSetPreamble</a></div><div class="ttdeci">void OpenRFSetPreamble(U16 pre)</div><div class="ttdef"><b>Definition:</b> openrf_mac.c:286</div></div>
<div class="ttc" id="group___open_r_f_html_gga0191e76d54bb003723263a47fa9a7101a1bec80a402b7a72ae776bf8631871643"><div class="ttname"><a href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a1bec80a402b7a72ae776bf8631871643">kPacketTransmitted</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:80</div></div>
<div class="ttc" id="group___open_r_f_html_ga66e3018afaf75239d092833054be068f"><div class="ttname"><a href="group___open_r_f.html#ga66e3018afaf75239d092833054be068f">OpenRFLoop</a></div><div class="ttdeci">tOpenRFStates OpenRFLoop()</div><div class="ttdef"><b>Definition:</b> openrf_mac.c:335</div></div>
<div class="ttc" id="group___open_r_f_html_ga721e6eb444576558b3b0eb11b11068c8"><div class="ttname"><a href="group___open_r_f.html#ga721e6eb444576558b3b0eb11b11068c8">OpenRFSleep</a></div><div class="ttdeci">void OpenRFSleep(U8 level)</div><div class="ttdef"><b>Definition:</b> openrf_mac.c:404</div></div>
<div class="ttc" id="group___open_r_f_html_gga75b3ac4a450160131d80d0178b974101a02dea8a7ec5fd46f76769a41e827093b"><div class="ttname"><a href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101a02dea8a7ec5fd46f76769a41e827093b">kFifoOverflow</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:95</div></div>
<div class="ttc" id="group___open_r_f_html_gga0191e76d54bb003723263a47fa9a7101aa20cbba7c3fbef0687f9aad998e94a0e"><div class="ttname"><a href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101aa20cbba7c3fbef0687f9aad998e94a0e">kTransmitting</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:64</div></div>
<div class="ttc" id="group___radio_html_gaceb4f15c2a65dde634322d4ab88c88ff"><div class="ttname"><a href="group___radio.html#gaceb4f15c2a65dde634322d4ab88c88ff">tReceiveModes</a></div><div class="ttdeci">tReceiveModes</div><div class="ttdef"><b>Definition:</b> radioapi.h:62</div></div>
<div class="ttc" id="group___open_r_f_html_gaed105eca7e470e79e9a2ac4bd4aa8863"><div class="ttname"><a href="group___open_r_f.html#gaed105eca7e470e79e9a2ac4bd4aa8863">OpenRFSendPacket</a></div><div class="ttdeci">void OpenRFSendPacket(UU32 destAddress, tPacketTypes packetType, U8 length, U8 *txBuffer)</div><div class="ttdef"><b>Definition:</b> openrf_mac.c:254</div></div>
<div class="ttc" id="group___open_r_f_html_gga0191e76d54bb003723263a47fa9a7101a6d54cce02512d451a161a1d1dcf273e6"><div class="ttname"><a href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a6d54cce02512d451a161a1d1dcf273e6">kSendAck</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:70</div></div>
<div class="ttc" id="group___open_r_f_html_gga75b3ac4a450160131d80d0178b974101a09c3a6fa88cf4c80c7516b2d657894a5"><div class="ttname"><a href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101a09c3a6fa88cf4c80c7516b2d657894a5">kNoAck</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:91</div></div>
<div class="ttc" id="group___open_r_f_html_ga0a276b3957264b6d9a4ee7af297d0b34"><div class="ttname"><a href="group___open_r_f.html#ga0a276b3957264b6d9a4ee7af297d0b34">tHoppingMode</a></div><div class="ttdeci">tHoppingMode</div><div class="ttdef"><b>Definition:</b> openrf_mac.h:102</div></div>
<div class="ttc" id="group___open_r_f_html_gga0191e76d54bb003723263a47fa9a7101add8280cdb1cba70addb16dee65ca02e6"><div class="ttname"><a href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101add8280cdb1cba70addb16dee65ca02e6">kWaitingForAck</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:68</div></div>
<div class="ttc" id="group___open_r_f_html_gga0191e76d54bb003723263a47fa9a7101a9b1fddf44bce966b60624b8566da0f5e"><div class="ttname"><a href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a9b1fddf44bce966b60624b8566da0f5e">kPacketReceived</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:78</div></div>
<div class="ttc" id="group___open_r_f_html_gga0a276b3957264b6d9a4ee7af297d0b34aca42c074332be0f2a766afb361c34f00"><div class="ttname"><a href="group___open_r_f.html#gga0a276b3957264b6d9a4ee7af297d0b34aca42c074332be0f2a766afb361c34f00">kHopping</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:105</div></div>
<div class="ttc" id="group___open_r_f_html_gga28163474abc4f10ccf9241e6c0a1422ea9da7444f0f36e477afb09e13e249ddab"><div class="ttname"><a href="group___open_r_f.html#gga28163474abc4f10ccf9241e6c0a1422ea9da7444f0f36e477afb09e13e249ddab">kBlockingDetectChannelActivity</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:50</div></div>
<div class="ttc" id="group___open_r_f_html_ga567d0717738c6d44e1f07b753407ac31"><div class="ttname"><a href="group___open_r_f.html#ga567d0717738c6d44e1f07b753407ac31">tOpenRFInitializer</a></div><div class="ttdeci">struct tOpenRFInitializer tOpenRFInitializer</div></div>
<div class="ttc" id="group___open_r_f_html_gga75b3ac4a450160131d80d0178b974101af83ce339764c3382ff1436195925846d"><div class="ttname"><a href="group___open_r_f.html#gga75b3ac4a450160131d80d0178b974101af83ce339764c3382ff1436195925846d">kFifoUnderflow</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:93</div></div>
<div class="ttc" id="union_u_u32_html"><div class="ttname"><a href="union_u_u32.html">UU32</a></div><div class="ttdef"><b>Definition:</b> TypeDefinitions.h:62</div></div>
<div class="ttc" id="group___open_r_f_html_gga0191e76d54bb003723263a47fa9a7101a19d8199da79ca4c28eb644052b08f632"><div class="ttname"><a href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a19d8199da79ca4c28eb644052b08f632">kIdle</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:62</div></div>
<div class="ttc" id="group___open_r_f_html_gga0191e76d54bb003723263a47fa9a7101a6a5907d52deb390eec3e544e19e45b33"><div class="ttname"><a href="group___open_r_f.html#gga0191e76d54bb003723263a47fa9a7101a6a5907d52deb390eec3e544e19e45b33">kReceiving</a></div><div class="ttdef"><b>Definition:</b> openrf_mac.h:76</div></div>
<div class="ttc" id="group___open_r_f_html_ga0191e76d54bb003723263a47fa9a7101"><div class="ttname"><a href="group___open_r_f.html#ga0191e76d54bb003723263a47fa9a7101">tOpenRFStates</a></div><div class="ttdeci">tOpenRFStates</div><div class="ttdef"><b>Definition:</b> openrf_mac.h:59</div></div>
<div class="ttc" id="group___open_r_f_html_ga75b3ac4a450160131d80d0178b974101"><div class="ttname"><a href="group___open_r_f.html#ga75b3ac4a450160131d80d0178b974101">tTransmitErrors</a></div><div class="ttdeci">tTransmitErrors</div><div class="ttdef"><b>Definition:</b> openrf_mac.h:88</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Sep 20 2014 15:04:07 for OpenRF by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
